/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package homework1;

/**
 *
 * @author c0909h1267
 */
class Thread1 extends Thread {

    public Thread1() {
    }

    @Override
    public void run() {
        //super.run();
        System.out.println("*");
    }
}

class Runnable1 implements Runnable {

    public Runnable1() {
    }

    public void run() {

        System.out.println("@");
    }
}

public class problem1 {

    public problem1() {
        //init t1
        Thread1 t1 = new Thread1();
        t1.start();

        //init t2
        Runnable1 r = new Runnable1();
        Thread t2 = new Thread(r);
        t2.start();

    }

    public static void main(String[] args) {
        new problem1();

    }
}




